export const fieldWrapper = (entity, field: string) => {
  const fields = Object.keys(entity.metadata.propertiesMap);

  if (!fields.includes(field) || fields.length == 0) {
    throw new Error('字段不存在');
  }

  return field;
};
